<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>글 등록</title>

<style>
#register_body{
	width: 700px;
	margin:0 auto;
	border: 2px dotted orange;
}
</style>

<script src="./board/board.js"></script>
<script>

function getId(id){return document.getElementById(id);}

function init(){
	getId("btnSave").onclick = function(){
		board_frm.action="index2.jsp?inc_center=./board/register_result.jsp";
		board_frm.submit();
	}
}
</script>
</head>
<body>
<%
String part = (String)session.getAttribute("part");
%>

<div id="register_body">
	<h1>게시글 업로드</h1>	
	<form name="board_frm" method="post" action="" enctype="multipart/form-data">
		아이디 : <input type="text" name="mid" value=""><br/>
		암&emsp;호 : <input type="password" name="pwd" value=""><br/>
		제&emsp;목 : <input type="text" name="subject" value=""><br/>
		내&emsp;용 : <textarea rows="5" cols="30" name="content"></textarea><br/>
		파&emsp;일 : <input type="file" name="filename"><br/>
		<input type="button" id="btnSave" value="전송">
		<input type="button" id="btnList" value="목록">
		<input type="hidden" name="part" value="<%=part%>">
	</form>
</div>

<script>
init();
</script>
</body>
</html>